package com.naxian.service.company;

import com.github.pagehelper.PageInfo;
import com.naxian.pojo.Company;
import com.naxian.pojo.Recruit;
import com.naxian.util.JsonResult;

import java.util.List;

/**
 * Created by Administrator on 2019/10/7.
 */
public interface CompanyService {
    //添加用户
    public boolean save(Company company);
    //修改用户
    public boolean update(Company company);
    //根据主键查询
    public Company getById(int companyId);

    //根据手机号查询
    public JsonResult getByTelno(Long companyTelno);

    //分页
    public PageInfo<Company> findByPage(Integer pageNum);
    //根据用户名,密码登陆
    public JsonResult loginByPerNameAndPwd(String companyName, Integer pwd);
    //获得所有公司
    public List<Company> getAllCompany();

    //将招聘信息 写入数据库
    public int recruitIn(Recruit recruit);
    //根据招聘id 查询招聘信息
    public Recruit getByRecId();
    //登录根据用户名或名密码
    public Company login(String username, Integer pwd);




}
